package com.ni.learning.exam.dto;

import com.our.learning.infrastructure.po.Exam;

/**
 * 考试接收对象
 * @author : Ice'Clean
 * @date : 2023-06-07
 */
public class ExamDTO {
    /** 考试 ID */
    private Integer examId;
    /** 试卷 ID */
    private Integer paperId;
    /** 教师 ID */
    private Integer teacherId;
    /** 考试名称 */
    private String name;
    /** 考试开始时间 */
    private String startTime;
    /** 考试结束时间 */
    private String endTime;

    public Integer getPaperId() {
        return paperId;
    }

    public void setPaperId(Integer paperId) {
        this.paperId = paperId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public Exam getExam() {
        Exam exam = new Exam();
        exam.setId(examId);
        exam.setPaperId(paperId);
        exam.setTeacherId(teacherId);
        exam.setName(name);
        exam.setStartTime(startTime);
        exam.setEndTime(endTime);
        return exam;
    }

    public Integer getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(Integer teacherId) {
        this.teacherId = teacherId;
    }

    public Integer getExamId() {
        return examId;
    }

    public void setExamId(Integer examId) {
        this.examId = examId;
    }

    @Override
    public String toString() {
        return "ExamDTO{" +
                "paperId=" + paperId +
                ", name='" + name + '\'' +
                ", startTime='" + startTime + '\'' +
                ", endTime='" + endTime + '\'' +
                '}';
    }
}
